package cn.hdu.liang.ch6;

public class CollectorHarness {
    public static void main(String[] args) {
        long fastest = Long.MAX_VALUE;
        for(int i = 0; i < 10; i++) {
            long start = System.nanoTime();
            //PartPrimeNum.getPartPrimes(100_0000);
            PartPrimeNum.getPrimesWithCustomCollector(100_0000);
            long duration = (System.nanoTime() - start) / 100_0000;
            if(duration < fastest) {
                fastest = duration;
            }
        }
        System.out.println("最快执行速度" + fastest + "毫秒");
    }
}
